Skip to content

Conversation

@jr
Copy link
Collaborator

@jr jr commented May 29, 2025

First setting controls logging task messages.

As written this shouldn't be merged until the server side is ready, or no TASK_MESSAGE will ever be logged.

This felt like the simplest way to do it, but it does not touch Task to make things really explicit. We could add something like CloudService.instance.canCaptureMessages() if we wanted to go that route.


Important

Add recordTaskMessages setting to control TASK_MESSAGE logging in TelemetryClient.

  • Behavior:
    • Add recordTaskMessages setting in cloud.ts to control logging of TASK_MESSAGE events.
    • Update isEventCapturable() in TelemetryClient.ts to check recordTaskMessages setting for TASK_MESSAGE events.
    • TASK_MESSAGE events are only captured if recordTaskMessages is true.
  • Tests:
    • Add tests in TelemetryClient.test.ts to verify TASK_MESSAGE capture behavior based on recordTaskMessages setting.
  • Misc:
    • Update CloudService.ts to pass SettingsService to TelemetryClient constructor.

This description was created by Ellipsis for a94d761. You can customize this summary. It will automatically update as commits are pushed.

First setting controls logging task messages.
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label May 29, 2025
Copy link
Collaborator

@cte cte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is okay for now, but I think it might make more sense to allow the org to explicitly select which telemetry events to record (or not), and we can represent this as a TelemetryEventSubscription object and use the logic from the base class:

protected isEventCapturable(eventName: TelemetryEventName): boolean {
  return this.subscription.type === "include"
    ? this.subscription.events.includes(eventName)
    : !this.subscription.events.includes(eventName)
  }

@jr jr marked this pull request as ready for review May 29, 2025 22:04
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels May 29, 2025
@jr jr merged commit 838256a into main May 29, 2025
22 checks passed
@jr jr deleted the jr/cloud-task-settings branch May 29, 2025 22:10
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap May 29, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants